package naga.x.platform2.channel.j9kgames.support;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import naga.x.platform2.App;

@Configuration
@EnableAutoConfiguration
@ConfigurationProperties(locations = "classpath:99kgames.properties")
public class J9KGamesConfig implements InitializingBean {

	private String partnerId;
	private String secKey;

	public String getPartnerId() {
		return partnerId;
	}

	public void setPartnerId(String partnerId) {
		this.partnerId = partnerId;
	}

	public String getSecKey() {
		return secKey;
	}

	public void setSecKey(String secKey) {
		this.secKey = secKey;
	}
	
	@Override
	public String toString() {
		return "[partnerId=" + partnerId + ", secKey=" + secKey + "]";
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		App.LOG.info("[99KGAMES CONFIG LOADED]{}", this);
	}

}
